package com.lh.feign;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author YMS
 * @date 2021/6/22
 */
@FeignClient("service-order")
@Component
public interface OrderFeign {

    @ApiOperation("记录每天的订单数")
    @GetMapping("/order/countOrder/{day}")
    public Integer countOrder(@PathVariable("day") String day);
}
